package cn.wolfcode.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class SystemDictionary {
    //主键
    private Long id;
    //编码
    private String sn;
    //标题
    private String title;
    //描述
    private String intro;

    public String toJSON(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("id" , id);
        map.put("sn" , sn);
        map.put("title" , title);
        map.put("intro" , intro);
        return  JSON.toJSONString(map);
    }
}